import axios from "../config.js";
/**
 *
 * @param {*} data
 */
export const userLogin = data => {
  return axios({
    url: "/user/login",
    method: "post",
    data
  });
};
/**
 *
 * @param {*} data,
 */
export const customerLogin = data => {
  return axios({
    url: "/customer/login",
    method: "post",
    data
  });
};
/**
 *
 * @param {*} data
 */
export const producerLogin = data => {
  return axios({
    url: "/producer/login",
    method: "post",
    data
  });
};
